<div class='tour_left'>
	<div class='title_1 cufon' style='width:595px;'>
        Kết quả tìm kiếm
    </div>
    <div>
    	<div id="cse" style="width: 100%;">Loading</div>
		<script src="http://www.google.com/jsapi" type="text/javascript"></script>
        <script type="text/javascript"> 
          function parseQueryFromUrl () {
            var queryParamName = "q";
            var search = window.location.search.substr(1);
            var parts = search.split('&');
            for (var i = 0; i < parts.length; i++) {
              var keyvaluepair = parts[i].split('=');
              if (decodeURIComponent(keyvaluepair[0]) == queryParamName) {
                return decodeURIComponent(keyvaluepair[1].replace(/\+/g, ' '));
              }
            }
            return '';
          }
          google.load('search', '1', {language : 'vi'});
          google.setOnLoadCallback(function() {
            var customSearchControl = new google.search.CustomSearchControl('002844664735204190259:f5aut0tdcsy');
            customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
            var options = new google.search.DrawOptions();
            options.enableSearchResultsOnly();     
            customSearchControl.draw('cse', options);
            var queryFromUrl = parseQueryFromUrl();
            if (queryFromUrl) {
              customSearchControl.execute(queryFromUrl);
            }
            //calculHeight();
            
          }, true);
        </script>
        <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
		<style type="text/css">
          .gsc-control-cse {
            font-family: Tahoma, Geneva, sans-serif;
            border: none;
            background: none;
          }
          .gsc-tabHeader.gsc-tabhInactive {
            border: none;
            background: none;
          }
          .gsc-tabHeader.gsc-tabhActive {
            border: none;
            background: none;
          }
          .gsc-tabsArea {
            border: none;
          }
          .gsc-webResult.gsc-result {
            border: none;
            background: none;
          }
          .gsc-webResult.gsc-result:hover {
            border: none;
            background: none;
          }
          .gs-webResult.gs-result a.gs-title:link,
          .gs-webResult.gs-result a.gs-title:link b {
            color: #ED1C24;
          }
          .gs-webResult.gs-result a.gs-title:visited,
          .gs-webResult.gs-result a.gs-title:visited b {
            color: #ED1C24;
          }
          .gs-webResult.gs-result a.gs-title:hover,
          .gs-webResult.gs-result a.gs-title:hover b {
            color: #ED1C24;
          }
          .gs-webResult.gs-result a.gs-title:active,
          .gs-webResult.gs-result a.gs-title:active b {
            color: #ED1C24;
          }
          .gsc-cursor-page {
            color: #ED1C24;
          }
          a.gsc-trailing-more-results:link {
            color: #ED1C24;
          }
          .gs-webResult .gs-snippet {
            color: #676767;
          }
          .gs-webResult div.gs-visibleUrl {
            color: #999;
          }
          .gs-webResult div.gs-visibleUrl-short {
            color: #999;
          }
          .gs-webResult div.gs-visibleUrl-short {
            display: none;
          }
          .gs-webResult div.gs-visibleUrl-long {
            display: block;
          }
          .gsc-cursor-box {
            border: none;
          }
          .gsc-results .gsc-cursor-box .gsc-cursor-page {
            border: none;
            background: none;
            color: #ED1C24;
          }
          .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
            border-color: #FF9900;
            color: #ED1C24;
          }
          .gs-promotion {
            border-color: #336699;
            background: none;
          }
          .gs-promotion a.gs-title:link,
          .gs-promotion a.gs-title:link *,
          .gs-promotion .gs-snippet a:link {
            color: #ED1C24;
          }
          .gs-promotion a.gs-title:visited,
          .gs-promotion a.gs-title:visited *,
          .gs-promotion .gs-snippet a:visited {
            color: #ED1C24;
          }
          .gs-promotion a.gs-title:hover,
          .gs-promotion a.gs-title:hover *,
          .gs-promotion .gs-snippet a:hover {
            color: #ED1C24;
          }
          .gs-promotion a.gs-title:active,
          .gs-promotion a.gs-title:active *,
          .gs-promotion .gs-snippet a:active {
            color: #ED1C24;
          }
          .gs-promotion .gs-snippet,
          .gs-promotion .gs-title .gs-promotion-title-right,
          .gs-promotion .gs-title .gs-promotion-title-right *  {
            color: #676767;
          }
          .gs-promotion .gs-visibleUrl,
          .gs-promotion .gs-visibleUrl-short {
            color: #999;
          }
        </style> 
        <div style='clear:both'></div>
        </div>
    </div>
</div>
<div class='tour_right'>
<?
$tours = Tour::getAllTours();
include('z_includes/tour_right.php');
?>
</div>
<div style='clear:both'></div>